import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router/router'
import './router/permission'
import { createPinia } from 'pinia'
//导入持久化管理，"pinia-plugin-persist": "1.0",为插件名
//import piniaPluginPersist from 'pinia-plugin-persist'
import { createPersistedState } from 'pinia-persistedstate-plugin'

import App from './App.vue'
const app = createApp(App)
const pinia = createPinia()
const persist = createPersistedState()
    //pinia.use(piniaPluginPersist)
pinia.use(persist)
app.use(ElementPlus)
app.use(pinia)
app.use(router)
app.mount('#app')